package com.yyy.dm;

import java.io.Serializable;

public class VoUtil<T> implements Serializable {

    public static<T> CommonResponse returnSuccess(T data){
        return new CommonResponse(data);
    }
    public static<T> CommonResponse returnSuccess(T data,String msg){
        return new CommonResponse(data,msg);
    }

    public static<T> CommonResponse returnFail(String errorCode, String msg){
        return new CommonResponse(errorCode, msg);
    }

}